package com.cip.admin.service;

import com.cip.admin.model.Friends;
import com.cip.admin.model.User;
import java.util.List;
import java.util.Map;

public interface FriendsService {
	
	Friends saveOrUpdateFriends(Friends friends) throws Exception;
	
	List<User> getAllFriendsById(int reqestFriendId) throws Exception;
	
	List<User> getSuggestedFriendsList(User requestFriend) throws Exception;
	
	List<User> getFriendBySearchName(String name) throws Exception;
	
	Friends getFriendByRequestAndResponse(int requestFriendId, int responseFriendId) throws Exception;
	
	/*List<Map<String, String>> getAllFriendsAsMap(int reqestFriendId) throws Exception;
	
	List<Map<String, String>> getSuggestedFriendsAsMap(User requestFriend) throws Exception;*/
	
	List<Map<String, String>> convertFriendsAsMap(List<User> userList) throws Exception;
	
	List<User> getAllUnConfirmedFriendsById(int requestFriendId) throws Exception;
	
	List<User> getAllInactiveFriendsById(int requestFriendId) throws Exception;

	
}
